import { createApp } from 'vue'
import App from './pages/index.vue'
import router from './router/index'
import { pinia } from './store'

/** 引入全局组件 */
import {
    Button,
    Circle,
    Checkbox,
    Form,
    CellGroup,
    Field,
    NavBar,
    Uploader,
    Radio,
    RadioGroup,
    Popup,
    Area,
    DatePicker
} from 'vant';
// 2. 引入组件样式
import 'vant/lib/index.css';

/** 引入全局样式 Preprocessor dependency "less" not found. Did you install it? Try `npm install -D less`. -- https://ant.design/docs/spec/colors-cn */
import './style/index.less'

createApp(App)
    .use(router)
    .use(pinia)
    .use(Button)
    .use(Circle)
    .use(Checkbox)
    .use(Form)
    .use(CellGroup)
    .use(Field)
    .use(NavBar)
    .use(Uploader)
    .use(Radio)
    .use(RadioGroup)
    .use(Popup)
    .use(Area)
    .use(DatePicker)
    .mount('#app')
